/**
 * 注销
 */
package org.hehui.supervisorysystem.actions;

import org.eclipse.jface.action.Action;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.hehui.supervisorysystem.util.IAppConstants;
import org.hehui.supervisorysystem.util.IImageKey;


/**
 * @author 贺辉
 *
 */
public class RestartAction extends Action {

	/**
	 * 
	 */
	public RestartAction() {
		setId("org.hehui.supervisorysystem.actions.restartActions");
		setText("Restart");
		setToolTipText("Restart");
		//setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IAppConstants.APPLICATION_ID, IImageKey.LOG_OFF));
	}
	
	
	@Override
	public void run() {
		PlatformUI.getWorkbench().restart();
		
	}
	




}
